﻿using Microsoft.Phone.Info;
using WindowsPhoneEssentials.Diagnostics;

namespace WindowsPhoneMvp.Util
{
    internal static class MemoryUsage
    {
        public static void GetMemoryUsage(object traceObject, ITraceAppender context, string task)
        {
#if DEBUG
            var number = (long)DeviceExtendedProperties.GetValue("ApplicationCurrentMemoryUsage");
            context.WriteLine(string.Format("ApplicationCurrentMemoryUsage\t{0}\t{1}", task, number));
#endif
        }
    }
}
